import request from '@/utils/request'

export function getAllGoods(query) {
  return request({
    url: '/community/help/goods',
    method: 'get',
    params: query
  })
}

export function updateGood(good) {
  return request({
    url: '/community/help/good',
    method: 'put',
    data: good
  })
}

export function updateGoodNotice(good) {
  return request({
    url: '/community/help/goodNotice',
    method: 'put',
    data: good
  })
}

export function addGood(good) {
  return request({
    url: '/community/help/good',
    method: 'post',
    data: good
  })
}

export function getAllOrders(query) {
  return request({
    url: '/community/help/orders',
    method: 'get',
    params: query
  })
}

export function getAllComments(query) {
  return request({
    url: '/community/help/comments',
    method: 'get',
    params: query
  })
}
